home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / emulator / bsvc-1.000 / bsvc-1 / bsvc-1.0.4 / src / UI / Makefile < prev    next >
Makefile  |  1995-07-26  |  2KB  |  45 lines

  1. ###############################################################################
  2. # Makefile for BSVC User Interface
  3. #
  4. # By: Bradford W. Mott
  5. #
  6. # December 5,1993
  7. ###############################################################################
  8.  
  9. ###############################################################################
  10. all: bsvc.tk bsvc
  11.  
  12. clean:
  13.     rm -f bsvc.tk bsvc
  14.  
  15. bsvc: Makefile
  16.     echo '#!/bin/sh' > bsvc
  17.     echo '# TCL_LIBRARY=......' >> bsvc
  18.     echo '# TK_LIBRARY=......' >> bsvc
  19.     echo '# export TCL_LIBRARY TK_LIBRARY' >> bsvc
  20.     echo 'ARGS=$$*' >> bsvc
  21.     echo 'export ARGS' >> bsvc
  22.     echo 'exec $(WISH) -f $(INSTALL_DIR)/UI/bsvc.tk' >> bsvc
  23.     chmod +x bsvc
  24.  
  25. bsvc.tk: Makefile
  26.     echo '#!$(WISH) -f' > bsvc.tk
  27.     echo 'set Program(InstallDir) $(INSTALL_DIR)' >> bsvc.tk
  28.     echo 'set Program(BitmapDir) $$Program(InstallDir)/UI/bitmaps' >> bsvc.tk
  29.     echo 'set Program(HelpDir) $$Program(InstallDir)/UI/help' >> bsvc.tk
  30.     echo 'set Program(LibDir) $$Program(InstallDir)/UI' >> bsvc.tk
  31.     echo 'set Program(WWWBrowser) "$(WWW_BROWSER)"' >> bsvc.tk
  32.     echo 'set Program(WWWHomePage) "$(WWW_HOME_PAGE)"' >> bsvc.tk
  33.     echo 'option readfile $$Program(InstallDir)/UI/bsvc.ad 40' >> bsvc.tk
  34.     echo 'source $$Program(InstallDir)/UI/main.tk' >> bsvc.tk
  35.  
  36. install: bsvc bsvc.tk
  37.     $(MKDIR) $(INSTALL_DIR)/UI
  38.     $(MKDIR) $(INSTALL_DIR)/UI/bitmaps
  39.     $(MKDIR) $(INSTALL_DIR)/UI/help
  40.     $(INSTALL) *.tk *.ad $(INSTALL_DIR)/UI
  41.     $(INSTALL) bitmaps/* $(INSTALL_DIR)/UI/bitmaps
  42.     $(INSTALL) help/* $(INSTALL_DIR)/UI/help
  43.     $(INSTALL) bsvc $(INSTALL_DIR)
  44.  
  45.